home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Laboratorio Interattivo Deagostini
/
laboratorio interattivo deagostini.bin
/
swf
/
11404.swf
/
scripts
/
frame_1
/
PlaceObject2_23_33
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2003-01-07
|
2KB
|
67 lines
onClipEvent(enterFrame){
function cliprilasciata(cheistanza)
{
var problema = 0;
var i = 0;
i = 0;
while(i < lista.length)
{
if(lista[i][0].toLowerCase() == cheistanza.toLowerCase())
{
problema = 1;
var trovato = 0;
var giusto = 0;
var e = 0;
e = 0;
while(e < lista[i][2].length)
{
daintercett = "_root." + lista[i][2][e];
if(eval(daintercett).hitTest(_root._xmouse,_root._ymouse,true))
{
trovato = 1;
if(lista[i][2][e] == lista[i][1])
{
giusto = 1;
}
if(SoloGiusta == 1 & giusto == 1)
{
Posizionate += 1;
getUrl("Giusto!", "");
eval(percorsoMobile)[cheIstanza]._x = eval(daintercett)._x;
eval(percorsoMobile)[cheIstanza]._y = eval(daintercett)._y;
eval(percorsoMobile)[cheIstanza].gotoAndStop(2);
}
break;
}
e++;
}
if(trovato == 1)
{
if(giusto == 0)
{
eval(percorsoMobile)[cheistanza]._x = eval(percorsoMobile)[cheistanza].xorig;
eval(percorsoMobile)[cheistanza]._y = eval(percorsoMobile)[cheistanza].yorig;
}
}
else
{
getUrl("Sbagliato!", "");
eval(percorsoMobile)[cheistanza]._x = eval(percorsoMobile)[cheistanza].xorig;
eval(percorsoMobile)[cheistanza]._y = eval(percorsoMobile)[cheistanza].yorig;
}
break;
}
i++;
}
if(problema == 0)
{
eval(percorsoMobile)[cheistanza]._x = eval(percorsoMobile)[cheistanza].xorig;
eval(percorsoMobile)[cheistanza]._y = eval(percorsoMobile)[cheistanza].yorig;
}
if(Posizionate == lista.length)
{
getUrl("GiocoFinito!", "");
}
}
}